import { ElNotification, ElMessage, ElMessageBox } from 'element-plus'
// 接口响应成功消息提示
export function toast(title: string, message: string, type = 'success', dangerouslyUseHTMLString = false
) {
    ElNotification({
        title,
        message,
        type,
        dangerouslyUseHTMLString,
        duration: 3000
    })
}

// 封装弹出提示框
export function showModel(content = '提示内容', type = 'warning', title = '') {
    return ElMessageBox.confirm(
        content,
        title,
        {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type,
        }
    )
}